package service;

import bean.CutPageBean;
import bean.GoodsBean;

import java.time.LocalDate;
import java.util.List;

public interface IGoodsService {
    public int add(GoodsBean goodsBean);

    public void del(Integer id);

    public void update(Integer id, Integer price);

    public GoodsBean findById(Integer id);

    public CutPageBean<GoodsBean> cutByItem(int pageNO, String name, Integer startPrice, Integer endPrice);

    public CutPageBean<GoodsBean> cutByFactory(int pageNO, String factory, LocalDate startDate, LocalDate endDate);

    public void addList(List<GoodsBean> list);

    public void delList(int[] idArray);
}
